package com.andyou.modules.content.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.andyou.common.persistence.Page;
import com.andyou.common.service.CrudService;
import com.andyou.modules.content.entity.ContentReplyLog;
import com.andyou.modules.content.dao.ContentReplyLogDao;

/**
 * 回复日志（content_reply_log）Service
 * @author lgx
 * @version 2020-03-09
 */
@Service
@Transactional(readOnly = true)
public class ContentReplyLogService extends CrudService<ContentReplyLogDao, ContentReplyLog> {

	public ContentReplyLog get(String id) {
		return super.get(id);
	}
	
	public List<ContentReplyLog> findList(ContentReplyLog contentReplyLog) {
		return super.findList(contentReplyLog);
	}
	
	public Page<ContentReplyLog> findPage(Page<ContentReplyLog> page, ContentReplyLog contentReplyLog) {
		return super.findPage(page, contentReplyLog);
	}
	
	@Transactional(readOnly = false)
	public int save(ContentReplyLog contentReplyLog) {
		return super.save(contentReplyLog);
	}
	
	@Transactional(readOnly = false)
	public void delete(ContentReplyLog contentReplyLog) {
		super.delete(contentReplyLog);
	}
	
	
    @Transactional(readOnly = false)
	public void batchDelete(List<String> idList) {
		ContentReplyLog contentReplyLog = null;
		for (String id : idList) {
			contentReplyLog = new ContentReplyLog();
			contentReplyLog.setId(id);
			super.delete(contentReplyLog);
		}
	}
}